package com.sms.biz.impl;

import java.util.List;

import com.sms.biz.INotifyPhoneBiz;
import com.sms.dao.INotifyPhoneDAO;
import com.sms.po.NotifyPhone;
/**
 * @author 20111006 by meng.xf
 */
public class NotifyPhoneBizImpl implements INotifyPhoneBiz {
	private INotifyPhoneDAO ibld = null;
	public void setIbld(INotifyPhoneDAO ibld){ this.ibld = ibld; }
	@Override
	public List<NotifyPhone> showAllNotifyPhone() {
		return ibld.showAllNotifyPhone();
	}

	@Override
	public List<NotifyPhone> showAllNotifyPhoneByPage(int start, int limit) {
		if (start <= 0) {start = 0;		}
		if (limit <= 0) {limit = 10;	}
		// 分页获取审核通知号码信息
		return ibld.showAllNotifyPhoneByPage(start, limit);
	}
	
	@Override
	public int getAllNotifyPhoneCount() {
		return ibld.getAllNotifyPhoneCount();
	}
	@Override
	public boolean addNotifyPhone(NotifyPhone bl) {
		try {
			return ibld.addNotifyPhone(bl);
		} catch (Exception e) {
			return false;
		}
	}
	@Override
	public boolean removeNotifyPhone(NotifyPhone bl) {
		try{
			return ibld.removeNotifyPhone(bl);
		} catch (Exception e) {
			return false;
		}
	}
	@Override
	public boolean updateNotifyPhone(NotifyPhone bl) {
		return ibld.updateNotifyPhone(bl);
	}

}
